﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SuperJ.CMS.Web.Areas.Admin.Controllers
{
    public class BaseController : System.Web.Mvc.Controller
    {
        protected string tabCounter;
        public BaseController()
        {
            
        }
        public string TabCounter { get { return tabCounter; } set { tabCounter=value;  } }
        protected override void OnActionExecuting(System.Web.Mvc.ActionExecutingContext filterContext)
        {
            if (filterContext != null)
            {
                if (filterContext.RequestContext.HttpContext.Request.QueryString["tc"] != null)
                {
                    tabCounter = filterContext.RequestContext.HttpContext.Request.QueryString["tc"].ToString();
                    Response.AppendHeader("TabCounter", tabCounter);
                }
            }
        }
    }
}